﻿namespace OboutInc
{
    using System;
    using System.Collections;

    internal class ClientManager
    {
        private Hashtable _ScriptFiles = new Hashtable();
        private Hashtable _Scripts = new Hashtable();
        private Hashtable _StyleFiles = new Hashtable();

        public void RegisterScript(string ScriptKey, string Script)
        {
            if (this.Scripts.ContainsKey(ScriptKey))
            {
                this.Scripts.Remove(ScriptKey);
            }
            this.Scripts.Add(ScriptKey, Script);
        }

        public void RegisterScriptFile(string ScriptFileKey, string ScriptFilePath)
        {
            if (this.ScriptFiles.ContainsKey(ScriptFileKey))
            {
                this.ScriptFiles.Remove(ScriptFileKey);
            }
            this.ScriptFiles.Add(ScriptFileKey, ScriptFilePath);
        }

        public void RegisterStyleFile(string StyleFileKey, string StyleFilePath)
        {
            if (this.StyleFiles.ContainsKey(StyleFileKey))
            {
                this.StyleFiles.Remove(StyleFileKey);
            }
            this.StyleFiles.Add(StyleFileKey, StyleFilePath);
        }

        internal Hashtable ScriptFiles
        {
            get
            {
                return this._ScriptFiles;
            }
            set
            {
                this._ScriptFiles = value;
            }
        }

        internal Hashtable Scripts
        {
            get
            {
                return this._Scripts;
            }
            set
            {
                this._Scripts = value;
            }
        }

        internal Hashtable StyleFiles
        {
            get
            {
                return this._StyleFiles;
            }
            set
            {
                this._StyleFiles = value;
            }
        }
    }
}

